"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;

Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "DescriptionsSkeleton", {
  enumerable: true,
  get: function get() {
    return _Descriptions.DescriptionsSkeleton;
  }
});
Object.defineProperty(exports, "ListPageSkeleton", {
  enumerable: true,
  get: function get() {
    return _List.default;
  }
});
Object.defineProperty(exports, "ListSkeleton", {
  enumerable: true,
  get: function get() {
    return _List.ListSkeleton;
  }
});
Object.defineProperty(exports, "ListSkeletonItem", {
  enumerable: true,
  get: function get() {
    return _List.ListSkeletonItem;
  }
});
Object.defineProperty(exports, "ListToolbarSkeleton", {
  enumerable: true,
  get: function get() {
    return _List.ListToolbarSkeleton;
  }
});
Object.defineProperty(exports, "PageHeaderSkeleton", {
  enumerable: true,
  get: function get() {
    return _List.PageHeaderSkeleton;
  }
});
Object.defineProperty(exports, "TableItemSkeleton", {
  enumerable: true,
  get: function get() {
    return _Descriptions.TableItemSkeleton;
  }
});
Object.defineProperty(exports, "TableSkeleton", {
  enumerable: true,
  get: function get() {
    return _Descriptions.TableSkeleton;
  }
});
exports.default = void 0;

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _jsxRuntime = require("react/jsx-runtime");

var _Descriptions = _interopRequireWildcard(require("./component/Descriptions"));

var _List = _interopRequireWildcard(require("./component/List"));

var _Result = _interopRequireDefault(require("./component/Result"));

var _excluded = ["type"];

var PageSkeleton = function PageSkeleton(_ref) {
  var _ref$type = _ref.type,
      type = _ref$type === void 0 ? 'list' : _ref$type,
      rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);

  if (type === 'result') {
    return (0, _jsxRuntime.jsx)(_Result.default, (0, _objectSpread2.default)({}, rest));
  }

  if (type === 'descriptions') {
    return (0, _jsxRuntime.jsx)(_Descriptions.default, (0, _objectSpread2.default)({}, rest));
  }

  return (0, _jsxRuntime.jsx)(_List.default, (0, _objectSpread2.default)({}, rest));
};

var _default = PageSkeleton;
exports.default = _default;